﻿<%@ Page Title="订单管理" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="AdminOrder.aspx.cs" Inherits="admin_AdminOrder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">订单管理列表</strong> / <small>ApplyManage</small></div>
    </div>

    <div class="am-g" style="margin-bottom: 16px;">
        <div class="am-u-sm-12 am-u-md-3">
            <div class="am-u-sm-8 am-u-md-10">
                <asp:DropDownList data-am-selected="{btnSize: 'sm'}" Style="display: none;" ID="ddlExamAllName" runat="server">                  
                </asp:DropDownList>
            </div>
        </div>
        <div class="am-u-sm-12 am-u-md-3">
            <div class="am-form-group">
                <div class="am-u-sm-8 am-u-md-10">
                    <asp:DropDownList data-am-selected="{btnSize: 'sm'}" Style="display: none;" ID="List_OrderState" runat="server">
                        <asp:ListItem Value="-1">全部</asp:ListItem>
                        <asp:ListItem Value="0">未付款</asp:ListItem>
                        <asp:ListItem Value="5">付款中</asp:ListItem>
                        <asp:ListItem Value="9">已付款</asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
        </div>
        <div class="am-u-sm-12 am-u-md-3" >
            <div class="am-form-group am-form-group-sm">
                <asp:TextBox runat="server" ID="txtStudentId" CssClass="am-form-field am-input-sm" placeholder="订单号 / 身份证号 / 学号" Width="250"></asp:TextBox>
            </div>
        </div>
        <div class="am-u-sm-12 am-u-md-3" style="float:left;">
            <div class="am-form-group">
                <asp:Button ID="btnSearch" runat="server" CssClass="am-btn am-btn-sm" Style="background-color: #0094ff; color: #fff" Text="查  找" OnClick="btnSearch_Click"/>
            </div>
        </div>
    </div>

    <div class="am-g">
        <div class="am-u-sm-12">
            <asp:GridView ID="gv" runat="server" DataKeyNames="OrderID,OrderState,StudIdcard" PageSize="12" AllowPaging="True" AutoGenerateColumns="false" CssClass="am-table am-table-striped am-table-hover table-main"  GridLines="None" 
                OnPageIndexChanging="gv_PageIndexChanging">
                <Columns>
                    <asp:TemplateField HeaderText="序号">
                        <HeaderStyle Width="60px"></HeaderStyle>
                        <ItemTemplate>
                            <%# Container.DataItemIndex + 1%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="OrderID" HeaderText="订单号" ItemStyle-Width="60px" />
                    <asp:BoundField DataField="ApplyID" HeaderText="报名号" ItemStyle-Width="50px" />
                    <asp:BoundField DataField="OrderStateCHN" HeaderText="订单状态" ItemStyle-Width="100px" />
                    <asp:BoundField DataField="EmAllName" HeaderText="考试全称" ItemStyle-Width="250px" />
                    <asp:BoundField DataField="EmRankName" ItemStyle-Width="150"  HeaderText="级别" />
                    <asp:BoundField DataField="EmCost" ItemStyle-Width="100"  HeaderText="考试费用" />
                    <asp:BoundField DataField="OrderFhTime" ItemStyle-Width="150px" DataFormatString="{0:yyyy-MM-dd}" HeaderText="订单完成时间" />
                   
                </Columns>
                <PagerSettings 
               
                    Mode="NumericFirstLast"
                    FirstPageText="首页"
                    LastPageText="末页"
                    PageButtonCount="7"
                    Position="Bottom" />
                <PagerStyle
                     BorderColor="#66FF66" Font-Names="微软雅黑" Font-Size="12px" HorizontalAlign="Center"
                        CssClass="pageIndex" />

            </asp:GridView>
         
            <hr />
            <p>注：.....</p>
        </div>
    </div>
</asp:Content>

